﻿using System.Web.Mvc;
using Sharp.Portal.Mvc;
using Sharp.ServiceContracts;

namespace Sharp.WebBooter.Areas.Workflow.Controllers
{
    [AutomaticTemplate]
    public class DesignController : Controller
    {
        public ActionResult DesignUI(string processGuid)
        {
            using (var proxy = new ServiceProxy<IWorkflowService>())
            {
                var dto = proxy.Channel.GetProcess(processGuid);

                return View("DesignUI", dto);
            }
        }
    }
}